package com.chat.common;

import java.io.Serializable;

/*
  聊天信息类
 */
public class ChatMsg implements Serializable {
    private static final long serialVersionUID = 1L;
    String senderid;//信息的发送者id
    String sendernickname;//发送者逆臣
    String receive;//信息的接受方id
    String time;//发送信息的时间
    String content;//信息的内容
    String groupid;//记录群聊Id
    String type;//消息类型(1是文本，2是图片，3是文件)
    String filename;//文件名称和类型
    Object file;//文件的二进制流
    String timestamp;//时间戳
    String address;//文件加密字段
    int count;//分片文件的编号

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getFile() {
        return file;
    }

    public void setFile(Object file) {
        this.file = file;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getGroupid() {
        return groupid;
    }

    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }
    public String getSenderid() {
        return senderid;
    }

    public void setSenderid(String senderid) {
        this.senderid = senderid;
    }

    public String getSendernickname() {
        return sendernickname;
    }

    public void setSendernickname(String sendernickname) {
        this.sendernickname = sendernickname;
    }
    public String getReceive() {
        return receive;
    }

    public void setReceive(String receive) {
        this.receive = receive;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "ChatMsg{" +
                "senderid='" + senderid + '\'' +
                ", sendernickname='" + sendernickname + '\'' +
                ", receive='" + receive + '\'' +
                ", time='" + time + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
